import http from '../http.js';


// 上传头像
let postava = (data) => {
    return http({
        method: "POST",
        url: '/img/upload_avatar',
        data
    })
}

// 更新用户信息
let putuserinfo = (data) => {
    return http({
        method: "PUT",
        url: '/user/update_user_info',
        data
    })
}

// 获取邮箱验证码
let getemailcode = (data) => {
    return http({
        url: '/verify/email',
        params: data
    })
}

// 绑定邮箱
let setuseremail = (data) => {
    return http({
        method: "PUT",
        url: '/user/update_user_email',
        data
    })
}


export default {
    postava,
    putuserinfo,
    getemailcode,
    setuseremail
}